package com.ngc.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ngc.mall.domain.MemberBenefitDomain;

import java.util.List;

/**
 *
 * 会员权益
 * @author: chenxiaolin
 * @date 2023/11/6 14:40
**/
public interface IMemberBenefitService extends IService<MemberBenefitDomain> {
    List<MemberBenefitDomain> queryAll();

    Long createMemberBenefit(MemberBenefitDomain domain);

    Boolean updateById(Long id,MemberBenefitDomain domain);

    Boolean deleteById(Long id);

    Boolean relateBenefitByMemberLevelId(Long levelId,List<Long> benefitIdList);

    List<MemberBenefitDomain> getMemberBenefitListByLevelId(Long id);
}
